project(showImage)
cmake_minimum_required(VERSION 2.8)
set(OPENCV_SRC $ENV{HOME}/work/cv/opencv-3.3.1)
set(OPENCV_BUILD ${OPENCV_SRC}/build)

aux_source_directory(. SRC_LIST)
#INCLUDE_DIRECTORIES(${OPENCV_SRC}/include)
add_executable(${PROJECT_NAME} ${SRC_LIST})
target_link_libraries(${PROJECT_NAME} opencv_core opencv_highgui opencv_imgcodecs opencv_imgproc)

